/*
 * ImageUtility.java
 *
 * Created on June 18, 2008, 8:43 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package levelbuilder;

import javax.imageio.ImageIO;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;

import javax.swing.JFrame;
/**
 *
 * @author ew562c
 */
public class ImageUtility {
    
    /** Creates a new instance of ImageUtility */
    public ImageUtility() {
    }
    
    public static BufferedImage loadImage(String ref) {
		BufferedImage bimg = null;
		try {

			bimg = ImageIO.read(new File(ref));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return bimg;
	}
    
      
}
